home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Toolbox
/
Visual Basic Toolbox (P.I.E.)(1996).ISO
/
dde
/
odbcncap
/
utility.bas
< prev
Wrap
BASIC Source File
|
1995-10-26
|
614b
|
24 lines
Option Explicit
Dim workString() As String
Function StripNullStrings (sStuff As String) As String
' Removes everything after a null character in a string
' Accepts a string
' Returns the shortened string
' Also returns the shortened string in the passed buffer
Dim iNull As Integer
iNull = InStr(sStuff, Chr$(0))
If iNull > 1 Then sStuff = Left(sStuff, iNull - 1)
StripNullStrings = sStuff
End Function
Sub waitcursor (PointerState As Integer)
If PointerState = True Then
screen.MousePointer = 11
Else
screen.MousePointer = 0
End If
End Sub